<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<button id="sendHeader" onclick="send()">HI</button>
<script>
    var send = function () {
        $.ajax({
            url: '/dog/7855',
            type: "GET",
            headers:{'token':'javaRequestHeader'},
            dataType: "json",
            success: function(data) {
                console.log(data);
            }
        });
    }
</script>
<a href="/showDogs">mvc show</a>
</body>
</html>